home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / WINSOCK.PAK / DLGSRVC.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  890b  |  36 lines

  1. #if !defined(DLGSRVC_H)
  2. #define DLGSRVC_H
  3.  
  4. #include <owl/defs.h>
  5. #include <owl/edit.h>
  6. #include <owl/button.h>
  7. #include <owl/winsock.h>
  8. #include "sockdemo.rh"
  9.  
  10. class DlgConvertService : public TDialog {
  11.   public:
  12.     enum     nState{nIdle, nWaitingForService} myPresentState;
  13.  
  14.     TEdit*    editService;
  15.     TEdit*    editProtocol;
  16.     TEdit*    editPort;
  17.     TStatic* staticStatus;
  18.     TButton* btnConvert;
  19.     bool      bBusyDoingLookup;
  20.     TServiceManager myServiceManager;
  21.  
  22.     DlgConvertService(TWindow* parent, TResId resId = IDD_GET_SERVICE_PORT,
  23.                       TModule* module = 0);
  24.     void SetupWindow();
  25.     void CmBtnConvert();
  26.     void CmOk();
  27.     void GoToIdleState();
  28.     void GoToWaitingForServiceState();
  29.  
  30.     TResult DoNotification(TParam1, TParam2 param2);
  31.  
  32.   DECLARE_RESPONSE_TABLE(DlgConvertService);
  33. };
  34.  
  35. #endif  // DLGSRVC_H
  36.